package com.hivis.mapper;

import com.hivis.entity.NotebookMsg;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NotebookMsgMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NotebookMsg record);

    int insertSelective(NotebookMsg record);

    NotebookMsg selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NotebookMsg record);

    int updateByPrimaryKeyWithBLOBs(NotebookMsg record);

    int updateByPrimaryKey(NotebookMsg record);

    List<NotebookMsg> selectByNotebooke(Map<String ,Object> params);
    int selectCountByNotebooke(Map<String, Object> params);
    void deleteExpiredMessage(@Param("hour") int expireHours);
}